package cn.hls.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.hls.dao.SafetyCardDao;
import cn.hls.entity.SafetyCard;
import cn.hls.entity.vo.PageInfo;
import cn.hls.service.SafetyCardService;
 
/**
  *@fileName: SafetyCardServiceBean.java
  *@package: cn.hls.service.impl
　*@ Description:　货物安全卡业务逻辑接口实现类
　*@author: uuhui@163.com
  *@date: 2016年6月9日
 *
 */
@Component("safetyCardService")
public class SafetyCardServiceBean extends BaseServiceBean<SafetyCard> implements SafetyCardService {

	@Resource(name="safetyCardDao")
	private SafetyCardDao dao;
	@Override
	public void delete(Object entityId) throws Exception {
		 dao.delete(entityId);
	}
	@Override
	public PageInfo<SafetyCard> loadSafetyCardInfo(
			PageInfo<SafetyCard> pageInfo, SafetyCard entity)
			throws Exception {
		return dao.loadSafetyCardInfo(pageInfo, entity);
	}

	@Override
	public boolean exists(SafetyCard entity)throws Exception{
		return dao.exists(entity);
	}

	@Override
	public List<SafetyCard> loadSafetyCardInfo(SafetyCard entity)
			throws Exception {
		return dao.loadSafetyCardInfo(entity);
	}
}
